<div class="list">
    <?php echo form_open('user'); ?>
    <input class="text" type="text" name="keyword" value="<?php echo $conditions['keyword']; ?>" />
        <button type="submit">查询</button>
    </form>
    <hr class="space">
    <table>
        <tr>
            <th>用户名</th>
            <th>有效期</th>
            <th>姓名</th>
            <th>性别</th>
            <th>联系电话</th>
            <th width="10%">操作</th>
        </tr>
        <?php foreach ($users as $u): ?>
        <tr>
            <td><?php echo $u['u_name']; ?></td>
            <td><?php echo $u['u_first_date']; ?> 至 <?php echo $u['u_last_date']; ?></td>
            <td><?php echo htmlspecialchars($u['u_real_name']); ?></td>
            <td><?php echo $u['u_sex']; ?></td>
            <td><?php echo htmlspecialchars($u['u_telephone']); ?></td>
            <td>
                <a href="<?php echo site_url('user/update/' . $u['u_id']); ?>">修改</a> | 
                <a href="<?php echo site_url('user/remove/' . $u['u_id']); ?>" onclick="return confirm('确定要删除人员 <?php echo $u['u_name']; ?> 吗？');">删除</a></td>
        </tr>
        <?php endforeach; ?>
    </table>
    <?php echo $pagelink; ?>
</div>
<script>
    $(function() {
        $("button:not(.adhere)").button();
    });
</script>